﻿using System;

namespace HomeWork1
{
    class Program
    {
        static void Main(string[] args)
        {
            int n, i;
            i = 2;
            n = System.Convert.ToInt32(Console.ReadLine());
            Console.WriteLine(System.Convert.ToString(n) + "=");
            while(n != 1)
            {
                if(n % i == 0)
                {
                    if(n == i)
                        Console.WriteLine(System.Convert.ToString(i));
                    if(n != i)
                        Console.WriteLine(System.Convert.ToString(i) + " * ");
                    n = n / i;
                }
                if (n % i != 0)
                    i++;  
            }
        }
    }
}

